import { createRequest } from '/@/api/service';
const module = 'ib/maintain/v1/AppPlanTaskCleaningApi/';
/**
 * 移动端计划列表
 */
function APP_PLAN_TASK_LIST_QUERY(
  data: AppPlanTaskCleaningApi.AppPlanTaskListQueryReq,
  header: object = {},
): Promise<AppPlanTaskCleaningApi.AppPlanTaskListQueryResp> {
  return createRequest(
    `${process.env.APP_API_URL}${module}queryAppPlanTaskCleaningList`,
    data,
    header,
    'POST',
  );
}
/**
 * @description 移动端计划详情
 * @param data 请求数据
 * @param header header数据
 * @returns 返回实体
 */
function APP_PLAN_TASK_DETAIL_QUERY(
  data: AppPlanTaskCleaningApi.AppPlanTaskDetailQueryReq,
  header: object = {},
): Promise<AppPlanTaskCleaningApi.AppPlanTaskDetailQueryResp> {
  return createRequest(
    `${process.env.APP_API_URL}${module}queryAppPlanTaskCleaningDetail`,
    data,
    header,
    'POST',
  );
}

/**
 * 移动端任务列表
 */
function APP_PLAN_TASK_ASSET_LIST_QUERY(
  data: AppPlanTaskCleaningApi.AppPlanTaskAssetListQueryReq,
  header: object = {},
): Promise<AppPlanTaskCleaningApi.AppPlanTaskAssetListQueryResp> {
  return createRequest(
    `${process.env.APP_API_URL}${module}queryAppPlanTaskCleaningAssetList`,
    data,
    header,
    'POST',
  );
}

/**
 * 移动端任务详情
 * @param data
 * @param header
 * @returns
 */
function APP_PLAN_TASK_ASSET_DETAIL_QUERY(
  data: AppPlanTaskCleaningApi.AppPlanTaskAssetDetailQueryReq,
  header: object = {},
): Promise<AppPlanTaskCleaningApi.AppPlanTaskAssetDetailQueryResp> {
  return createRequest(
    `${process.env.APP_API_URL}${module}queryAppPlanTaskCleaningAssetDetail`,
    data,
    header,
    'POST',
  );
}

/**
 * 移动端处理任务
 * @param data
 * @param header
 * @returns
 */
function HANDLE_APP_TASK(
  data: AppPlanTaskCleaningApi.HandleAppTaskReq,
  header: object = {},
): Promise<AppPlanTaskCleaningApi.HandleAppTaskResp> {
  return createRequest(
    `${process.env.APP_API_URL}${module}handleAppTaskCleaning`,
    data,
    header,
    'POST',
  );
}

/**
 * 转派
 * @param data
 * @param header
 * @returns
 */
function FORWARD_APP_TASK(
  data: AppPlanTaskCleaningApi.ForwardAppTaskReq,
  header: object = {},
): Promise<AppPlanTaskCleaningApi.ForwardAppTaskResp> {
  return createRequest(
    `${process.env.APP_API_URL}${module}forwardAppTaskCleaning`,
    data,
    header,
    'POST',
  );
}

export {
  APP_PLAN_TASK_LIST_QUERY,
  APP_PLAN_TASK_ASSET_LIST_QUERY,
  APP_PLAN_TASK_ASSET_DETAIL_QUERY,
  HANDLE_APP_TASK,
  FORWARD_APP_TASK,
  APP_PLAN_TASK_DETAIL_QUERY,
};
